{% spaceless %}
<style>#em-plugin-attachments-uploader_attachments [class*="span"] {	margin-left: 10px; }</style>
<div class="row-fluid">
	<div class="span7 widget">
		<div class="widget-header">
			<span class="title"><i class="icon-folder-closed"></i> Partage de documents</span>
		</div>
		<div class="widget-content">
			<h4>Liste des documents enregistrés : </h4>
			<ul id="em-plugin-attachments-uploader_attachments" class="icons-list webfont clearfix"> 
			{% for key, attachment in event.attachments %}
				<li class="span12">
					<input type="hidden" value="{{ attachment.id }}" name="attachment_{{ key }}" />
					<span><i class="icon-attachment"></i></span>
					<code class="text-nowrap" style="width: 75%; vertical-align:middle;"><a class="attachment_remove_action" href="#"><i class="icon-remove"></i> Supprimer</a> - <a href="{{ path('imt_attachment_down', {'ids':attachment.id}) }}">{{ attachment.name }}</a></code>
				</li>
			{% else %}
				<li class="alert alert-info span12">Ajoutez des fichiers pour créer des pièces jointes associées à votre demande de mailing.</li>
			{% endfor %}
			</ul>
		</div>
	</div>
	<div class="span5 widget">
		<div class="widget-header">
			<span class="title"><i class="icon-upload"></i> Ajouter des documents</span>
			<div class="toolbar">
				<div class="btn-group">
					<a id="em-plugin-attachments-uploader_refresh" href="#" class="btn"><i class="icon-refresh"></i></a>
				</div>
			</div>
		</div>
		
		<div id="em-plugin-attachments-uploader" class="widget-content no-padding no-border"></div>									
	</div>
</div>
{% endspaceless %}